package com.zhny.iot.yy.collect.gateway.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class YYCollectGatewayStoreEntry extends StoreEntity {
    @PropertyValue(alias = "鱼池1溶解氧",description = "鱼池1溶解氧",unit = "mg/l",icon=IconConstract.O2,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private String dissolvedOxygen1;
    @PropertyValue(alias = "鱼池1水温",description = "鱼池2水温",unit = "℃",icon=IconConstract.Temperature,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private String temperature1;

    @PropertyValue(alias = "鱼池2溶解氧",description = "鱼池1溶解氧",unit = "mg/l",icon=IconConstract.O2,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private String dissolvedOxygen2;
    @PropertyValue(alias = "鱼池2水温",description = "鱼池2水温",unit = "℃",icon=IconConstract.Temperature,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private String temperature2;


    @PropertyValue(alias = "循环水溶解氧",description = "鱼池1溶解氧",unit = "mg/l",icon=IconConstract.O2,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private String dissolvedOxygen3;
    @PropertyValue(alias = "循环水水温",description = "循环水水温",unit = "℃",icon=IconConstract.Temperature,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private String temperature3;
    @PropertyValue(alias = "循环水ph",description = "循环水ph",unit = "",icon=IconConstract.PH,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private String ph3;

    public String toString(){
        StringBuffer sb = new StringBuffer();
        sb.append("dissolvedOxygen1=").append(this.dissolvedOxygen1);
        sb.append(", temperature1=").append(this.temperature1);
        sb.append(", dissolvedOxygen2=").append(this.dissolvedOxygen2);
        sb.append(", temperature2=").append(this.temperature2);
        sb.append(", dissolvedOxygen3=").append(this.dissolvedOxygen3);
        sb.append(", temperature3=").append(this.temperature3);
        sb.append(", ph3=").append(this.ph3);
        return sb.toString();
    }
}
